]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
search: Fix custom drag actor source
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 19 Aug 2014 16:57:36 +0000 (18:57 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 19 Aug 2014 17:12:02 +0000 (19:12 +0200)
The existing code broke when commit 792b963bda8c changed the custom
result actor hook to return an object instead of an actor - stop
trying to go through a _delegate to make it work again.

js/ui/search.js

index 1bb656a0aa904e077cbfc130e4af88ea6f7112aa..16ec4d2eb8e158dd7733860c87310f3a131a3311 100644 (file)
@@ -243,8 +243,8 @@ const GridSearchResult = new Lang.Class({
             dragSource = icon.icon;
             content = { actor: actor, icon: icon };
         } else {
-            if (content._delegate && content._delegate.getDragActorSource)
-                dragSource = content._delegate.getDragActorSource();
+            if (content.getDragActorSource)
+                dragSource = content.getDragActorSource();
         }
 
         this.actor.set_child(content.actor);